#########################################################################
##
## This file is part of the SAMRAI distribution.  For full copyright 
## information, see COPYRIGHT and LICENSE. 
##
## Copyright:     (c) 1997-2019 Lawrence Livermore National Security, LLC
## Description:   primary makefile for compiling the SAMRAI tbox package 
##
#########################################################################


SAMRAI        = @top_srcdir@
SRCDIR        = @srcdir@
SUBDIR        = source/SAMRAI/tbox
VPATH         = @srcdir@
OBJECT        = ../../..

default: library

include $(OBJECT)/config/Makefile.config

SUBDIRS = fortran

OBJS = 	\
	ArraySpecial.o \
	AsyncCommGroup.o \
	AsyncCommStage.o \
	BalancedDepthFirstTree.o \
	BreadthFirstRankTree.o \
	CenteredRankTree.o \
	Clock.o \
	CommGraphWriter.o \
	ConduitDatabase.o \
	Database.o \
	DatabaseBox.o \
	DatabaseFactory.o \
	Dimension.o \
	Grammar.o \
	HDFDatabase.o \
	HDFDatabaseFactory.o \
	IEEE.o \
	InputManager.o \
	Logger.o \
	MathUtilitiesSpecial.o \
	MemoryDatabase.o \
	MemoryDatabaseFactory.o \
	MemoryUtilities.o \
	MessageStream.o \
	NullDatabase.o \
	PIO.o \
	ParallelBuffer.o \
	Parser.o \
	RankGroup.o \
	RankTreeStrategy.o \
	ReferenceCounter.o \
	RestartManager.o \
	SAMRAIManager.o \
	SAMRAI_MPI.o \
	Scanner.o \
	Schedule.o \
	Serializable.o \
	SiloDatabase.o \
	SiloDatabaseFactory.o \
	StartupShutdownManager.o \
	StatTransaction.o \
	Statistic.o \
	Statistician.o \
	Timer.o \
	TimerManager.o \
	Tracer.o \
	Transaction.o \
	Utilities.o

library: $(OBJS)
	for DIR in $(SUBDIRS); do if test -d $$DIR; then (cd $$DIR && $(MAKE) $@) ; fi || exit 1; done
clean:
	$(CLEAN_COMMON_LIB_FILES)
	for DIR in $(SUBDIRS); do if test -d $$DIR; then (cd $$DIR && $(MAKE) $@) ; fi || exit 1; done

include $(SRCDIR)/Makefile.depend
